home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 12 / Cream of the Crop 12 (Part II) / Cream of the Crop 12 (Part II).iso / OS2 / SAMBA193.ZIP / example.cfg < prev    next >
Encoding:
Text File  |  1996-04-17  |  4.2 KB  |  142 lines

  1. ; Example configuration file for OS/2 port of Samba.
  2. ; ============================================================================
  3. ; For the format of this file and comprehensive descriptions of all the
  4. ; configuration option, please refer to config.txt
  5. ;
  6. ; The following configuration should suit most systems for basic usage and 
  7. ; initial testing.
  8. ;
  9. ; Things you need to check:
  10. ; --------------------------
  11. ;
  12. ;  Paths
  13. ;
  14. ;  Look at the "hosts allow" option, unless you want everyone on the internet
  15. ;  to be able to access your files.
  16. ;
  17. [global]
  18.    os level = 1
  19.    domain master = no
  20.    dead time = 15
  21.    max log size = 100
  22. ; Have not seen messages working - you are welcome to try though
  23. ;   message command = "smbos2 smbmsg.cmd %s %f %m %t"
  24.    lock directory = d:/tmp/samba
  25.    share modes = no
  26.    workgroup = WORKGROUP
  27.    server string = %h at %T
  28. ; Have not seen printing working - you are welcome to try.
  29. ;   load printers = yes
  30. ;   printcap = c:/tcpip/etc/printcap
  31. ;   printing = aix
  32. ;   print command = "smbos2 lpr %s"
  33. ;   lpq command = "lpq"
  34.    guest account = guest
  35.    preserve case = yes
  36.    default service = public
  37.    guest only = yes
  38.    dfree command = smbdf.cmd
  39.  
  40. ;  This next option sets a separate log file for each client. Remove
  41. ;  it if you want a combined log file.
  42. ;   log file = /usr/local/samba/log
  43.  
  44. ;  You will need a world readable lock directory and "share modes=yes"
  45. ;  if you want to support the file sharing modes for multiple users
  46. ;  of the same files
  47. ;  lock directory = /usr/local/samba/var/locks
  48. ;  share modes = yes
  49.  
  50. ;[Post]
  51. ;        comment = Printer (postscript)
  52. ;        path = d:/tmp
  53. ;        read only = true
  54. ;        printable = true
  55. ;        postscript = true
  56. ;        printer = tree_eater
  57. ;        public = true
  58.  
  59. ; A publicly accessible directory, but read only.
  60. [public]
  61.    comment = Public Stuff (mostly for OS/2)
  62.    path = d:/pub
  63.    public = yes
  64.    writable = no
  65.    printable = no
  66. ; Publicly accessible, read/write
  67. [incoming]
  68.    comment = Incoming Files
  69.    path = d:/pub/incoming
  70.    public = yes
  71.    writable = yes
  72.    printable = no
  73.  
  74. ;
  75. ; Other examples. 
  76. ;
  77. ; A private printer, usable only by fred. Spool data will be placed in fred's
  78. ; home directory. Note that fred must have write access to the spool directory,
  79. ; wherever it is.
  80. ;[fredsprn]
  81. ;   comment = Fred's Printer
  82. ;   valid users = fred
  83. ;   path = /homes/fred
  84. ;   printer = freds_printer
  85. ;   public = no
  86. ;   writable = no
  87. ;   printable = yes
  88. ;
  89. ; A private directory, usable only by fred. Note that fred requires write
  90. ; access to the directory.
  91. ;[fredsdir]
  92. ;   comment = Fred's Service
  93. ;   path = /usr/somewhere/private
  94. ;   valid users = fred
  95. ;   public = no
  96. ;   writable = yes
  97. ;   printable = no
  98. ;
  99.  
  100. ;
  101. ; a service which has a different directory for each machine that connects
  102. ; this allows you to tailor configurations to incoming machines. You could
  103. ; also use the %u option to tailor it by user name.
  104. ; The %m gets replaced with the machine name that is connecting.
  105. ;[pchome]
  106. ;  comment = PC Directories
  107. ;  path = /usr/pc/%m
  108. ;  public = no
  109. ;  writeable = yes
  110. ;
  111. ;
  112. ; A publicly accessible directory, read/write to all users. Note that all files
  113. ; created in the directory by users will be owned by the default user, so
  114. ; any user with access can delete any other user's files. Obviously this
  115. ; directory must be writable by the default user. Another user could of course
  116. ; be specified, in which case all files would be owned by that user instead.
  117. ;[public]
  118. ;   path = /usr/somewhere/else/public
  119. ;   public = yes
  120. ;   only guest = yes
  121. ;   writable = yes
  122. ;   printable = no
  123. ;
  124. ;
  125. ; The following two entries demonstrate how to share a directory so that two
  126. ; users can place files there that will be owned by the specific users. In this
  127. ; setup, the directory should be writable by both users and should have the
  128. ; sticky bit set on it to prevent abuse. Obviously this could be extended to
  129. ; as many users as required.
  130. ;[myshare]
  131. ;   comment = Mary's and Fred's stuff
  132. ;   path = /usr/somewhere/shared
  133. ;   valid users = mary fred
  134. ;   public = no
  135. ;   writable = yes
  136. ;   printable = no
  137. ;   create mask = 0765
  138.  
  139.  
  140.  
  141.  
  142.